package com.littleHan.brushQuestions.web.start.service;

import com.littleHan.brushQuestions.exception.FailedToLoadException;
import com.littleHan.brushQuestions.web.start.pojo.GeneralUser;
import com.littleHan.brushQuestions.web.start.pojo.vo.TopicVo;
import com.littleHan.brushQuestions.web.userCenter.pojo.Announcement;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface LastIndexService {

    /**
     * 检查是否已经登录了
     * @param request
     */
    String testIsLogin(HttpServletRequest request);

    /**
     * 获取站长信息
     * @return 站长实例
     */
    GeneralUser getWebAdminInfo() throws FailedToLoadException;

    /**
     * 获取题目
     * @return 题目携带评论数和收藏数集合
     * @throws FailedToLoadException
     */
    List<TopicVo> getTopic() throws FailedToLoadException;

    /**
     * 获取网站公告
     * @return
     */
    List<Announcement> getAnnouncementList();

    /**
     * 获取获赞排行榜
     * @return
     */
    List<GeneralUser> getCommentLikeMaxList();
}
